@import './com1';

main {

    .box1 {
        .content1 {
            .ct_box {
                margin-top: 2.625rem;
                display: flex;
                flex-direction: column;
                h2 {
                    font-size: 1.875rem;
                    color: #ff6b08;
                }
                .box_1 {
                    margin-top: 2.4375rem;
                    div {
                        display: flex;
                        width: 100%;
                            a {
                                position: relative;
                                border: 1px solid #eeeeee;
                                &:nth-of-type(1)::before {
                                    content: '技术突破：HTML5裸跑性能已可媲美APP';
                                    position: absolute;
                                    bottom: 0;
                                    width: 100%;
                                    height: 2.6875rem;
                                    line-height: 2.6875rem;
                                    text-align: center;
                                    color: #fff;
                                    background-color: rgba(0, 0, 0, .6);
                                    font-size: .875rem;
                                }

                                &:nth-of-type(2)::before {
                                    content: 'HTML5干货：LAYAWORLD  TFC秋季特刊';
                                    position: absolute;
                                    bottom: 0;
                                    width: 100%;
                                    height: 2.6875rem;
                                    line-height: 2.6875rem;
                                    text-align: center;
                                    color: #fff;
                                    background-color: rgba(0, 0, 0, .6);
                                    font-size: .875rem;
                                }

                                &:nth-of-type(3)::before {
                                    content: '慕和：手游大作《魔卡幻想》为何移植HTML5';
                                    position: absolute;
                                    bottom: 0;
                                    width: 100%;
                                    height: 2.6875rem;
                                    line-height: 2.6875rem;
                                    text-align: center;
                                    color: #fff;
                                    background-color: rgba(0, 0, 0, .6);
                                    font-size: .875rem;
                                }

                                &:nth-of-type(2) {
                                    margin: 0 2.625rem;
                                }
                                img {
                                    width: 100%;
                                }
                            }
                        }
                    }
                }
            }
        }

    .box2 {
        .content2 {
            .ct_box {
                margin-left: 0;
                margin-right: 0;
                margin-top: 5.625rem;
                display: flex;
                .box_one {
                    width: 13.6875rem;
                    height: 8.4125rem;
                    padding: .1875rem;
                    border: .0625rem solid #ddd;
                    border-radius: .25rem;
                }
                .box_two {
                    display: flex;
                    flex-direction: column;
                    position: relative;
                    margin-left: 1.8125rem;
                    width: 100%;
                    height: 9.8125rem;
                    h4 {
                        margin: 0;
                        font-size: 1.125rem;
                        
                    }
                    p {
                        margin-top: 1.125rem;
                        margin-bottom: 0;
                        font-size: .875rem;
                        width: 100%;
                        &:nth-of-type(2) {
                            margin-top: 1.5625rem;
                            width: 100%;
                            height: 100%;
                        }
                    }
                        a {
                            position: absolute;
                            right: 0;
                            bottom: 0;
                            display: inline-block;
                            width: 6.25rem;
                            height: 2.0625rem;
                            background-color: #ff6b08;
                            color: #fff;
                            font-size: .875rem;
                            text-align: center;
                            line-height: 2.0625rem;
                            border-radius: 1rem;
                            text-decoration: none;
                            &:hover + h4 {
                                color: #ff6b08;
                            }
                        }
                }
            }
        }
    }

    .box3 {
        
        .content3 {
            .ct_box {
                margin-left: 0;
                margin-right: 0;
                margin-top: 2.375rem;
                display: flex;
                .box_one {
                    width: 13.6875rem;
                    height: 8.4125rem;
                    padding: .1875rem;
                    border: .0625rem solid #ddd;
                    border-radius: .25rem;
                }
                .box_two {
                    display: flex;
                    flex-direction: column;
                    position: relative;
                    margin-left: 1.8125rem;
                    width: 100%;
                    height: 9.8125rem;
                    h4 {
                        margin: 0;
                        font-size: 1.125rem;
                        
                    }
                    p {
                        margin-top: 1.125rem;
                        margin-bottom: 0;
                        font-size: .875rem;
                        width: 100%;
                        &:nth-of-type(2) {
                            margin-top: 1.5625rem;
                            width: 100%;
                            height: 100%;
                        }
                    }
                        a {
                            position: absolute;
                            right: 0;
                            bottom: -1.25rem;
                            display: inline-block;
                            width: 6.25rem;
                            height: 2.0625rem;
                            background-color: #ff6b08;
                            color: #fff;
                            font-size: .875rem;
                            text-align: center;
                            line-height: 2.0625rem;
                            border-radius: 1rem;
                            text-decoration: none;
                            &:hover + h4 {
                                color: #ff6b08;
                            }
                        }
                }
            }
        }
    }

    }

footer {
    .box4 {
        position: relative;
        margin: 0 auto;
        &::before {
            content: '';
            position: absolute;
            margin-left: 13%;
            width: 60%;
            height: .0625rem;
            border-top: 2px dotted #ddd;
        }
        .content4 {
        margin-bottom: 1.6875rem;

            .ct_box {
                margin-top: 2.375rem;
                text-align: center;
                font-size: 0;
                a {
                    border: 1px solid #dddddd;
                    text-align: center;
                    color: #000;
                    font-size: .75rem;
                    cursor: pointer;
                    &:hover {
                        text-decoration: none;
                        background-color: #e34637;
                        color: #fff;
                    }
                }
                a:nth-of-type(1) {
                    display: inline-block;
                    width: 3.3125rem;
                    height: 2.1875rem;
                    line-height: 2.1875rem;
                    border-radius: .325rem 0 0 .325rem/.325rem 0 0 .325rem;
                    
                }
                a:nth-of-type(2) {
                    display: inline-block;
                    width: 3.9375rem;
                    height: 2.1875rem;
                    line-height: 2.1875rem;
                }
                a:nth-of-type(3),a:nth-of-type(4),a:nth-of-type(5),a:nth-of-type(6) {
                    display: inline-block;
                    width: 2.1875rem;
                    height: 2.1875rem;
                    line-height: 2.1875rem;
                }
                a:nth-of-type(7) {
                    display: inline-block;
                    width: 3.9375rem;
                    height: 2.1875rem;
                    line-height: 2.1875rem;
                    border-radius: 0 .325rem .325rem 0/ 0.325rem .325rem 0;
                    
                }
            }
        }
    }
}

// ipad端
@media screen and (min-width:768px) and (max-width:970px) {
    main {
        .box1 {
            .content1 {
                .ct_box {
                    margin-top: 2.625rem;
                    display: flex;
                    flex-direction: column;
                    h2 {
                        font-size: 1.875rem;
                        color: #ff6b08;
                    }
                    .box_1 {
                        margin-top: 2.4375rem;
                        div {
                            display: flex;
                            width: 100%;
                                a {
                                    position: relative;
                                    border: 1px solid #eeeeee;
                                    &:nth-of-type(1)::before {
                                        content: '技术突破：HTML5裸跑性能已可媲美APP';
                                        position: absolute;
                                        bottom: 0;
                                        width: 100%;
                                        height: 2.6875rem;
                                        line-height: 2.6875rem;
                                        text-align: center;
                                        color: #fff;
                                        background-color: rgba(0, 0, 0, .6);
                                        font-size: .875rem;
                                    }
    
                                    &:nth-of-type(2)::before {
                                        content: 'HTML5干货：LAYAWORLD  TFC秋季特刊';
                                        position: absolute;
                                        bottom: 0;
                                        width: 100%;
                                        height: 2.6875rem;
                                        line-height: 2.6875rem;
                                        text-align: center;
                                        color: #fff;
                                        background-color: rgba(0, 0, 0, .6);
                                        font-size: .875rem;
                                    }
    
                                    &:nth-of-type(3)::before {
                                        content: '慕和：手游大作《魔卡幻想》为何移植HTML5';
                                        position: absolute;
                                        bottom: 0;
                                        width: 100%;
                                        height: 2.6875rem;
                                        line-height: 2.6875rem;
                                        text-align: center;
                                        color: #fff;
                                        background-color: rgba(0, 0, 0, .6);
                                        font-size: .875rem;
                                    }
    
                                    &:nth-of-type(2) {
                                        margin: 0 2.625rem;
                                    }
                                    img {
                                        width: 100%;
                                    }
                                }
                            }
                        }
                    }
                }
            }

        .box2 {
                .content2 {
                    .ct_box {
                        margin-left: 0;
                        margin-right: 0;
                        margin-top: 5.625rem;
                        display: flex;
                        .box_one {
                            width: 13.6875rem;
                            height: 8.4125rem;
                            padding: .1875rem;
                            border: .0625rem solid #ddd;
                            border-radius: .25rem;
                        }
                        .box_two {
                            display: flex;
                            flex-direction: column;
                            position: relative;
                            margin-left: 1.8125rem;
                            width: 100%;
                            height: 9.8125rem;
                            h4 {
                                margin: 0;
                                font-size: 1.125rem;
                                
                            }
                            p {
                                margin-top: 1.125rem;
                                margin-bottom: 0;
                                font-size: .875rem;
                                width: 100%;
                                &:nth-of-type(2) {
                                    margin-top: 1.5625rem;
                                    width: 100%;
                                    height: 100%;
                                }
                            }
                                a {
                                    position: absolute;
                                    right: 0;
                                    bottom: 0;
                                    display: inline-block;
                                    width: 6.25rem;
                                    height: 2.0625rem;
                                    background-color: #ff6b08;
                                    color: #fff;
                                    font-size: .875rem;
                                    text-align: center;
                                    line-height: 2.0625rem;
                                    border-radius: 1rem;
                                    text-decoration: none;
                                    &:hover + h4 {
                                        color: #ff6b08;
                                    }
                                }
                        }
                    }
                }
        }
        
        .box3 {
                
                .content3 {
                    .ct_box {
                        margin-left: 0;
                        margin-right: 0;
                        margin-top: 2.375rem;
                        display: flex;
                        .box_one {
                            width: 13.6875rem;
                            height: 8.4125rem;
                            padding: .1875rem;
                            border: .0625rem solid #ddd;
                            border-radius: .25rem;
                        }
                        .box_two {
                            display: flex;
                            flex-direction: column;
                            position: relative;
                            margin-left: 1.8125rem;
                            width: 100%;
                            height: 11.8125rem;
                            h4 {
                                margin: 0;
                                font-size: 1.125rem;
                                
                            }
                            p {
                                margin-top: 1.125rem;
                                margin-bottom: 0;
                                font-size: .875rem;
                                width: 100%;
                                &:nth-of-type(2) {
                                    margin-top: 1.5625rem;
                                    width: 100%;
                                    height: 100%;
                                }
                            }
                                a {
                                    position: absolute;
                                    right: 0;
                                    bottom: -1.25rem;
                                    display: inline-block;
                                    width: 6.25rem;
                                    height: 2.0625rem;
                                    background-color: #ff6b08;
                                    color: #fff;
                                    font-size: .875rem;
                                    text-align: center;
                                    line-height: 2.0625rem;
                                    border-radius: 1rem;
                                    text-decoration: none;
                                    &:hover + h4 {
                                        color: #ff6b08;
                                    }
                                }
                        }
                    }
                }
        }

        
    }

    footer {
        .box4 {
            position: relative;
            margin: 0 auto;
            &::before {
                content: '';
                position: absolute;
                margin-left: 13%;
                width: 60%;
                height: .0625rem;
                border-top: 2px dotted #ddd;
            }
            .content4 {
            
            margin-bottom: 1.6875rem;
    
                    margin-top: 3.375rem;
                    .ct_box {
                    text-align: center;
                    font-size: 0;
                    a {
                        border: 1px solid #dddddd;
                        text-align: center;
                        color: #000;
                        font-size: .75rem;
                        cursor: pointer;
                        &:hover {
                            text-decoration: none;
                            background-color: #e34637;
                            color: #fff;
                        }
                    }
                    a:nth-of-type(1) {
                        display: inline-block;
                        width: 3.3125rem;
                        height: 2.1875rem;
                        line-height: 2.1875rem;
                        border-radius: .325rem 0 0 .325rem/.325rem 0 0 .325rem;
                        
                    }
                    a:nth-of-type(2) {
                        display: inline-block;
                        width: 3.9375rem;
                        height: 2.1875rem;
                        line-height: 2.1875rem;
                    }
                    a:nth-of-type(3),a:nth-of-type(4),a:nth-of-type(5),a:nth-of-type(6) {
                        display: inline-block;
                        width: 2.1875rem;
                        height: 2.1875rem;
                        line-height: 2.1875rem;
                    }
                    a:nth-of-type(7) {
                        display: inline-block;
                        width: 3.9375rem;
                        height: 2.1875rem;
                        line-height: 2.1875rem;
                        border-radius: 0 .325rem .325rem 0/ 0.325rem .325rem 0;
                        
                    }
                }
            }
        }
    }
}

// 移动端
@media screen and (max-width:767px) {
    main {
        .box1 {
            .content1 {
                .ct_box {
                    margin-top: 0rem;

                    h2 {
                        margin-bottom: 1.25rem;
                    }
                    .box_1 {
                        margin-top: 0rem;
                        div {

                                a {
                                    
                                    position: relative;
                                    border: 1px solid #eeeeee;
                                    &:nth-of-type(1)::before {
                                        height: 1.5rem;
                                        line-height: 1.5rem;
                                        font-size: .35rem;
                                    }
                                    &:nth-of-type(2)::before {
                                        height: 1.5rem;
                                        line-height: 1.5rem;
                                        font-size: .35rem;
                                    }
    
                                    &:nth-of-type(3)::before {
                                        height: 1.5rem;
                                        line-height: 1.5rem;
                                        font-size: .35rem;
                                    }
    
                                    &:nth-of-type(2) {
                                        margin: 0 1rem;
                                    }
                                    img {
                                        width: 100%;
                                    }
                                }
                            }
                        }
                    }
                }
            }

        .box2 {
            .content2 {
                .ct_box {
                    margin-left: 0;
                    margin-right: 0;
                    margin-top: 5.625rem;
                    display: flex;
                    .box_one {
                        width: 0;
                        height: 0;
                        padding: 0;
                        border:none;
                        border-radius: .25rem;
                        img {
                            display: none;
                        }
                    }
                    .box_two {
                        display: flex;
                        flex-direction: column;
                        position: relative;
                        margin-left: 0;
                        width: 100%;
                        height:100%;
                        h4 {
                            margin: 0;
                            font-size: 1.125rem;
                            
                        }
                        p {
                            margin-top: 1.125rem;
                            margin-bottom: 0;
                            font-size: .875rem;
                            width: 100%;
                            height: 100%;
                            &:nth-of-type(2) {
                                margin-top: 1.5625rem;
                                width: 100%;
                                height: 100%;
                            }
                        }
                            a {
                                position: absolute;
                                right: 0;
                                bottom: -2rem;
                                display: inline-block;
                                width: 6.25rem;
                                height: 2.0625rem;
                                background-color: #ff6b08;
                                color: #fff;
                                font-size: .875rem;
                                text-align: center;
                                line-height: 2.0625rem;
                                border-radius: 1rem;
                                text-decoration: none;
                                outline: none;
                                &:hover + h4 {
                                    color: #ff6b08;
                                }
                            }
                    }
                }
            }
        }
        
        .box3 {
                
                .content3 {
                    .ct_box {
                        margin-left: 0;
                        margin-right: 0;
                        margin-top: 2.375rem;
                        display: flex;
                        .box_one {
                            width: 0;
                            height: 0;
                            padding: 0;
                            border:none;
                            border-radius: .25rem;
                            img {
                                display: none;
                            }
                        }
                        .box_two {
                            display: flex;
                            flex-direction: column;
                            position: relative;
                            margin-left: 0;
                            width: 100%;
                            height:100%;
                            h4 {
                                margin: 0;
                                font-size: 1.125rem;
                                
                            }
                            p {
                                margin-top: 1.125rem;
                                margin-bottom: 0;
                                font-size: .875rem;
                                width: 100%;
                                height: 100%;
                                &:nth-of-type(2) {
                                    margin-top: 1.5625rem;
                                    width: 100%;
                                    height: 100%;
                                }
                            }
                                a {
                                    position: absolute;
                                    right: 0;
                                    bottom: -2rem;
                                    display: inline-block;
                                    width: 6.25rem;
                                    height: 2.0625rem;
                                    background-color: #ff6b08;
                                    color: #fff;
                                    font-size: .875rem;
                                    text-align: center;
                                    line-height: 2.0625rem;
                                    border-radius: 1rem;
                                    text-decoration: none;
                                    outline: none;
                                    &:hover + h4 {
                                        color: #ff6b08;
                                    }
                                }
                        }
                    }
                }
        }
    }
    
}